package com.tsinghua.discharge.dao;

import com.tsinghua.discharge.model.Area;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface AreaMapper {
    int deleteByPrimaryKey(Integer areaid);

    int insert(Area record);

    int insertSelective(Area record);

    Area selectByPrimaryKey(Integer areaid);

    int updateByPrimaryKeySelective(Area record);

    int updateByPrimaryKey(Area record);

    Area selectBySupAreaId( @Param("supAreaId") Integer supAreaId, @Param("userId") Integer userId);

    Area selectByAreaAb(@Param("areaAb") String areaAb,@Param("userId") Integer userId);

}